package jee.demo.pro.dao;

import jee.demo.pro.model.User;

import java.util.List;

/**
 * Created by Zhen on 2015/4/17.
 */
public interface UserDAO extends DAO<User> {

    User getByUsername(String username);

    public User getByUsername(User user);

    void login(User user);

    void logout(Integer id);

    Long countByUsername(String username);

    Long countByNickname(String nickname);

}
